package com.qf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;


/**
 * @author KING
 * @ClassName: com.qf.entity.Address
 * @Description: 该类的功能描述
 * @date: 2021/10/25 22:06
 */


@Data
@TableName(value = "ums_address")
public class Address {
    @TableId(value = "address_id", type = IdType.ASSIGN_ID)
    private Integer addressId;

    /**
     * 收货人名称
     */
    @TableField(value = "receiving_name")
    private String receivingName;

    /**
     * 用户表的用户ID
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 地址对应省市区id
     */
    @TableField(value = "area_id")
    private Integer areaId;


    private Area area;

    private String provinceCity;

    /**
     * 详细收货地址
     */
    @TableField(value = "address_detail")
    private String addressDetail;

    /**
     * 手机号码
     */
    @TableField(value = "tel")
    private String tel;

    /**
     * 是否默认地址
     */
    @TableField(value = "defaulted")
    private Boolean defaulted;

    /**
     * 创建时间
     */
    @TableField(value = "add_time")
    private Date addTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 逻辑删除
     */
    @TableField(value = "deleted")
    private Boolean deleted;

    public static final String COL_ADDRESS_ID = "address_id";

    public static final String COL_RECEIVING_NAME = "receiving_name";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_AREA_ID = "area_id";

    public static final String COL_ADDRESS_DETAIL = "address_detail";

    public static final String COL_TEL = "tel";

    public static final String COL_DEFAULTED = "defaulted";

    public static final String COL_ADD_TIME = "add_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_DELETED = "deleted";
}
